<!doctype html>
<html>

<head>
	<meta charset="utf-8">
	<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
	<meta name="format-detection" content="telephone=no" />
	<title>首页</title>
	<link rel="stylesheet" type="text/css" href="../c/aui.css" />
</head>
<style>
	body {
		background-color: transparent !important;
		background-color: #000 !important;
		/*height: 100%;*/
	}

	.aui-card-list,
	.aui-list,
	.aui-list-item {
		background: none !important;
		color: #fff !important;
		border: none !important;
	}

	.aui-content {
		color: #fff;
		height: 100%;
	}

	.sx-right {
		background: #000 !important;
		height: 100%;
		/*padding-top: 100px;*/
	}

	.sx-right .aui-list-item-media {
		width: 1.5rem;
	}

	.sx-right .aui-list-item-media img {}

	.sx-right .aui-list-item-inner {
		font-size: 0.75rem;
		vertical-align: middle;
		;
		opacity: 0.8
	}

	.a {
		position: fixed;
		top: 0;
		left: 0;
		z-index: 0
	}

	.a {
		background-color: rgb(0, 0, 0);
		opacity: 0.5;
		width: 100%;
		height: 100%;
	}

	.aui-list {
		border-top: 1px solid #111 !important;
		padding-bottom: 0.5rem;
		margin-bottom: 0.25rem;
		padding-top: 0.5rem;
	}

	.aui-list:first-child {
		border: 0 !important;
	}

	.aui-list .aui-list-item {
		padding-top: 0.25rem;
	}
</style>
<body>
	<div class="sx-right aui-card-list">
		<script id="sx-list" type="text/x-dot-template">
			<ul class="aui-list aui-media-list">
				<li class="aui-list-item aui-list-item-middle _config_app" style="display: none;"  tapmode onclick="_url({url:'member_wallet',title:'我的钱包'})">
					<div class="aui-media-list-item-inner">
						<div class="aui-list-item-media">
							<img src="../i/member_right_chong.png">
						</div>
						<div class="aui-list-item-inner" id="chongzhi">
							我的钱包
						</div>
					</div>
				</li>
					<li class="aui-list-item aui-list-item-middle _config_app"  tapmode onclick="_url({url:'member_yaoqing',title:'邀请好友'})">
						<div class="aui-media-list-item-inner">
							<div class="aui-list-item-media">
								<img src="../i/member_right_chong.png">
							</div>
							<div class="aui-list-item-inner" id="chongzhi">
								我的邀请码
							</div>
						</div>
					</li>
				<li class="aui-list-item aui-list-item-middle _config_app"  tapmode onclick="_url({url:'zhibo_view_frm_chongzhi',title:'{{= _config.zhibo.liwu_name}}充值'})">
					<div class="aui-media-list-item-inner">
						<div class="aui-list-item-media">
							<img src="../i/member_right_chong.png">
						</div>
						<div class="aui-list-item-inner" id="chongzhi">
							{{= _config.zhibo.liwu_name}}充值
						</div>
					</div>
				</li>
				<li class="aui-list-item aui-list-item-middle _config_app"  tapmode onclick="_url({url:'allpeople',title:'网红达人培训'})">
					<div class="aui-media-list-item-inner">
						<div class="aui-list-item-media">
							<img src="../i/member_vip.png">
						</div>
						<div class="aui-list-item-inner">
							网红达人培训
						</div>
					</div>
				</li>
				<li class="aui-list-item aui-list-item-middle" tapmode onclick="_url({},'shop_win')">
					<div class="aui-media-list-item-inner">
						<div class="aui-list-item-media">
							<img src="../i/member_right_shop.png">
						</div>
						<div class="aui-list-item-inner">
							购物中心
						</div>
					</div>
				</li>

				<!-- <li  class="aui-list-item aui-list-item-middle disf" tapmode onclick="_url({url:'member_band',title:'第三方账户绑定'})">
					<div class="aui-media-list-item-inner">
						<div class="aui-list-item-media">
							<img src="../i/member_right_dsf.png">
						</div>
						<div class="aui-list-item-inner">
							第三方账户绑定
						</div>
					</div>
				</li> -->
			</ul>
			<ul class="aui-list aui-media-list">
				{{? _getPrefs('_user').xiaodian}}
				{{? _getPrefs('_user').xiaodian.hide == 1}}
				<li  class="aui-list-item aui-list-item-middle disf" tapmode onclick="shop_add()">
					<div class="aui-media-list-item-inner">
						<div class="aui-list-item-media">
							<img src="../i/member_right_dsf.png">
						</div>
						<div class="aui-list-item-inner">
							发布商品
						</div>
					</div>
				</li>
				<li  class="aui-list-item aui-list-item-middle disf" tapmode onclick="_url({url:'shop_user_list_win',title:'管理商品'},'shop_user_list_win')">
					<div class="aui-media-list-item-inner">
						<div class="aui-list-item-media">
							<img src="../i/member_right_dsf.png">
						</div>
						<div class="aui-list-item-inner">
							管理商品
						</div>
					</div>
				</li>
				<li  class="aui-list-item aui-list-item-middle disf" tapmode onclick="_url({url:'shop_dingdan_win',title:'用户订单'},'shop_dingdan_win')">
					<div class="aui-media-list-item-inner">
						<div class="aui-list-item-media">
							<img src="../i/member_right_dsf.png">
						</div>
						<div class="aui-list-item-inner">
							用户订单
						</div>
					</div>
				</li>
				{{??}}
				<li  class="aui-list-item aui-list-item-middle disf" tapmode onclick="kaidian()">
					<div class="aui-media-list-item-inner">
						<div class="aui-list-item-media">
							<img src="../i/member_right_dsf.png">
						</div>
						<div class="aui-list-item-inner">
							申请开通小店
						</div>
					</div>
				</li>
				{{?}}
				{{??}}
				<li  class="aui-list-item aui-list-item-middle disf" tapmode onclick="kaidian()">
					<div class="aui-media-list-item-inner">
						<div class="aui-list-item-media">
							<img src="../i/member_right_dsf.png">
						</div>
						<div class="aui-list-item-inner">
							申请成为商家
						</div>
					</div>
				</li>
				{{?}}
			</ul>
			<ul class="aui-list aui-media-list">
				<li class="aui-list-item aui-list-item-middle" tapmode onclick="_url({url:'xiaoxi',title:'消息通知'})">
					<div class="aui-media-list-item-inner">
						<div class="aui-list-item-media">
							<img src="../i/tongzhi.png">
						</div>
						<div class="aui-list-item-inner">
							消息通知
						</div>
					</div>
				</li>
				<li class="aui-list-item aui-list-item-middle" tapmode onclick="_url({url:'member_shoucang',title:'我的收藏'})">
					<div class="aui-media-list-item-inner">
						<div class="aui-list-item-media">
							<img src="../i/member_right_shoucang.png">
						</div>
						<div class="aui-list-item-inner">
							我的收藏
						</div>
					</div>
				</li>
				<!-- <li class="aui-list-item aui-list-item-middle" tapmode onclick="_url({url:'member_fensi',title:'粉丝'})">
					<div class="aui-media-list-item-inner">
						<div class="aui-list-item-media">
							<img src="../i/member_right_fensi.png">
						</div>
						<div class="aui-list-item-inner">
							粉丝通知
						</div>
					</div>
				</li>
				<li class="aui-list-item aui-list-item-middle" tapmode onclick="_url({url:'member_zan',title:'赞'})">
					<div class="aui-media-list-item-inner">
						<div class="aui-list-item-media">
							<img src="../i/member_right_dianzan.png">
						</div>
						<div class="aui-list-item-inner">
							点赞通知
						</div>
					</div>
				</li>
				<li class="aui-list-item aui-list-item-middle" tapmode onclick="_url({url:'member_ping',title:'评论'})">
					<div class="aui-media-list-item-inner">
						<div class="aui-list-item-media">
							<img src="../i/member_right_pinglun.png">
						</div>
						<div class="aui-list-item-inner">
							评论通知
						</div>
					</div>
				</li> -->
			</ul>
			<ul class="aui-list aui-media-list">
				<li class="aui-list-item aui-list-item-middle" tapmode onclick="_url({url:'member_yijian',title:'意见反馈'})">
					<div class="aui-media-list-item-inner">
						<div class="aui-list-item-media">
							<img src="../i/member_right_yijian.png">
						</div>
						<div class="aui-list-item-inner">
							意见反馈
						</div>
					</div>
				</li>
			</ul>
			<ul class="aui-list aui-media-list">
				<li class="aui-list-item aui-list-item-middle" tapmode onclick="_url({url:'member_sz',title:'编辑资料'})">
					<div class="aui-media-list-item-inner">
						<div class="aui-list-item-media">
							<img src="../i/member_right_sz.png">
						</div>
						<div class="aui-list-item-inner">
							设置
						</div>
					</div>
				</li>
			</ul>
			<ul class="aui-list aui-media-list">
				<li class="aui-list-item aui-list-item-middle" tapmode onclick="_url({url:'douyin_test',title:'抖音测试'})">
					<div class="aui-media-list-item-inner">
						<div class="aui-list-item-media">
							<img src="../i/member_right_sz.png">
						</div>
						<div class="aui-list-item-inner">
							抖音测试
						</div>
					</div>
				</li>
			</ul>
		</script>
		<div class="aui-card-list-content" id="sx-view"></div>
	</div>
</body>
<script type="text/javascript" src="../j/api.js"></script>
<script type="text/javascript" src="../j/jquery-3.3.1.min.js"></script>
<script type="text/javascript">
	function urlsa() {
		var imglen = $("img").length;
		var picurlwa = picurl + "/vip";
		for (var i = 0; i < imglen; i++) {
			var tpl = $("img").eq(i).attr("src");
			tplaas = tpl.replace("../i/vip", picurlwa);
			$("img").eq(i).attr("src", tplaas);	
		
	}
	}
	apiready = function() {
		urlsa();
		_user = _getPrefs('_user');
		_config = _getPrefs('_config');
		var evalData = doT.template($api.html($api.byId('sx-list')));
		$api.html($api.byId('sx-view'), evalData());
		if (_config.config.app == 1) {
			$('.config_app').addClass('aui-hide');
		}
		$api.fixStatusBar($api.dom('.sx-right'))
		api.parseTapmode();
		api.addEventListener({
				name: 'member_right'
		}, function(ret, err) {
				if(ret.value.close){
					api.closeFrame();
				}
		});
	}

	function kefu() {
		var mq = api.require('meiQia');
		var param = {
			appkey: _config.config.kefu
		};
		mq.initMeiQia(param)
		var titleColor = {
			color: "#000"
		};
		mq.setTitleColor(titleColor);
		var titleBarColor = {
			color: "#fff"
		};
		mq.setTitleBarColor(titleBarColor);
		mq.show();
		var infoParam = {
			age: _getPrefs('_user').age == 1 ? '男' : (_user.age == 2 ? '女' : ''),
			avatar: _img(_user.img, 100),
			gender: _user.birthday_name,
			tel: _user.mobile,
			name: _user.username,
			source: _config.config.title,
			comment: '用户id:' + _user.id
		};
		mq.setClientInfo(infoParam);
	}
	function shop_add(){
    api.actionSheet({
        title: '请选择发布商品方式',
        cancelTitle: '取消',
        buttons: ['添加小店商品','添加第三方商品']
    }, function(ret, err) {
        var index = ret.buttonIndex;
				if(index == 1){
					_url_shop({url:'shop_add',title:'添加小店商品'})
				}else if(index == 2){
					_url_shop({url:'shop_add',title:'添加第三方网址',post_url:true})
				}
		});
	}
	function kaidian(){
		if(!_user.shiming){
			return _suxiangw_msg({content:'开通店铺之前，请先实名认证',rightTitle:'我要实名',url:'_url({url:"member_shiming",title:"实名认证"})'})
		}
		if(_user.xiaodian){
			if(_user.xiaodian.hide == 1){
				return _suxiangw_msg2({content:'店铺已通过审核，请重新进去主页刷新即可',rightTitle:'知道了'},function(ret){dialogBox.close({dialogName: 'alert'})})
			}else if(_user.xiaodian.hide == 2){
				return _suxiangw_msg2({content:'店铺正在审核，请耐心等待',rightTitle:'知道了'},function(ret){dialogBox.close({dialogName: 'alert'})})
			}else if(_user.xiaodian.hide ==  0){
				return _suxiangw_msg2({content:'店铺已封号，如有申诉请联系客服',rightTitle:'知道了'},function(ret){dialogBox.close({dialogName: 'alert'})})
			}
		}
		_url_shop({url:'shop_user_add',title:'开通店铺'})
	}
</script>

</html>
